package Messages;

import java.io.IOException;
import java.io.Serializable;
import java.util.HashMap;

import Tools.InternalRepresentation;
import Tools.OpinionBase;
import jade.core.AID;
import jade.domain.FIPANames.InteractionProtocol;
import jade.lang.acl.ACLMessage;

public class ProfilePass extends ACLMessage{
	
	public ProfilePass(AID target,AID sender,Serializable profile) throws IOException{
		addReceiver(target);
		setLanguage("English");
		setOntology("Jasmin3");
		setProtocol(InteractionProtocol.FIPA_REQUEST);
		setConversationId("ProfileRequest");
		String s="";
		/*for(AID id : ops.keySet()){
			s+="<"+id.toString()+">\n";
			for(String obj:ops.get(id).keySet()){
				s+="<"+obj+">\n";
				for(String attr:ops.get(id).get(obj).keySet()){
					s+="<"+attr+">\n";
					if(ops.get(id).get(obj).get(attr)!=null){
						s+=ops.get(id).get(obj).get(attr).toString();
					}
					s+="</"+attr+">\n";
				}
				s+="</"+obj+">\n";
			}
			s+="</"+id.toString()+">\n";
		}*/
		//setContent(s);
		setContentObject(profile);
		setSender(sender);
	}
}
